package com.dkm.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

@Configuration//配置类
public class WebSocketConfig {

	//如果用的内置的tomcat，必须配置，自动读取websocket端点
	@Bean
	public ServerEndpointExporter serverEndpointExporter() {
		
		return new ServerEndpointExporter();
	}
	
}
